<?php
    if(C('LAYOUT_ON')) {
        echo '{__NOLAYOUT__}';
    }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>跳转提示</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/reset.css" />
<style type="text/css">
body{ 
	background: #f3f3f3; 
	font-family: '微软雅黑'; 
	color: #333; 
	font-size: 12px; 
}
.system-message{ 
	width: 500px;
	background-color: #fefefe;
	position: absolute;
	top:20%;
	left:50%;
	margin-top: -75px;
	margin-left: -250px;
	border: 1px solid #d4d4d4;
	background: #fff;
	-webkit-box-shadow: #ccc 0 1px 5px;
	-moz-box-shadow: #ccc 0 1px 5px;
	-o-box-shadow: #ccc 0 1px 5px;
	box-shadow: #ccc 0 1px 5px;
	filter: progid: DXImageTransform.Microsoft.Shadow(Strength=3, Direction=180, Color='#ccc');
}
.system-message .tit{ 
	padding: 10px 20px;
	border-bottom: 1px solid #dfdfdf;
	background:#f9f9f9;
	background-repeat: no-repeat;
	background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(25%, #ffffff), to(#f4f4f4));
	background-image: -webkit-linear-gradient(#ffffff, #ffffff 25%, #f4f4f4);
	background-image: -moz-linear-gradient(top, #ffffff, #ffffff 25%, #f4f4f4);
	background-image: -ms-linear-gradient(#ffffff, #ffffff 25%, #f4f4f4);
	background-image: -o-linear-gradient(#ffffff, #ffffff 25%, #f4f4f4);
	background-image: linear-gradient(#ffffff, #ffffff 25%, #f4f4f4);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f4f4f4', GradientType=0);
}
.system-message .con{
	padding: 10px 20px;
}
.system-message .con .con-message{
	font-size: 14px;
	line-height: 24px;
	height: 48px;
	overflow: hidden;
}
.system-message .jump{ 
	padding-top: 10px
}
</style>
</head>
<body>
	<div class="system-message">
		<div class="tit gray">
			<?php if(isset($message)){echo '成功提示 :) ';}else{echo '错误提示 :( ';}?>
		</div>
		<div class="con">
			<p class="con-message">
				<?php if(isset($message)){echo($message);}else{echo($error);}?>
			</p>
			<p class="jump fr">
				<a id="href" class="btn" href="<?php echo($jumpUrl); ?>">
					<i id="wait"><?php echo($waitSecond); ?></i>秒后自动跳转
				</a>
			</p>
			<div class="clear"></div>
		</div>
	</div>


<script type="text/javascript">
(function(){
var wait = document.getElementById('wait'),
	href = document.getElementById('href').href;
var interval = setInterval(function(){
	var time = --wait.innerHTML;
	if(time <= 0) {
		location.href = href;
		clearInterval(interval);
	};
}, 1000);
})();
</script>
</body>
</html>
